package com.mas.session;

import java.util.Map;

import com.mas.session.state.AbstractState;
import com.mas.session.state.NewProposalProcessor;
import com.mas.strategey.UserStrategy;
import com.mas.user.UserResourceAgent;

public class UserSession extends Session{

	public UserSession(UserResourceAgent agent, String name, Map<String, Double> mapInitPrices) {
		super(agent, name);
		setCurrentState((AbstractState) assignState(NewProposalProcessor.class
				.getName()));
		
		this.setStrategy(new UserStrategy(mapInitPrices)); 
	}
	/**
	 * @return the UserResourceAgent
	 */
	public UserResourceAgent getUserResourceAgent() {
		return (UserResourceAgent) agent;
	}

}
